package com.day16.Map1;

import java.util.Map;
import java.util.Set;
import java.util.HashMap;
public class MapDemo02 {
    public static void main(String[] args)
    {
        Map<String,String> map=new HashMap<String,String>();
        map.put("杨过","林青霞");
        map.put("张无忌","张曼玉");
        map.put("郭靖","王祖贤");
        Set<Map.Entry<String,String>> entrySet=map.entrySet();
        for(Map.Entry<String,String> me:entrySet){
            String key=me.getKey();
            String value=me.getValue();
            System.out.println(me.getKey()+"-->"+me.getValue());
        }

    }
}
